<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 th:text="|Hello ${username}!|"></h1>
权限有：
<p th:each="auth : ${authorities}" th:text="${auth.authority}"> </p>
<a th:href="@{/admin/admin.html}">管理员页面</a><br>
<a th:href="@{/user/user.html}">用户页面</a><br>
<form th:action="@{/logout}" method="post">
    <input type="submit" value="注销">
</form>

</body>
</html>